//
//  UIEdgeInsets+AG.swift
//  AG
//
//  Created by zhuxuhong on 2020/10/24.
//  Copyright © 2020 AgoCulture. All rights reserved.
//

import UIKit

extension UIEdgeInsets {
    public static func with(all: CGFloat) -> UIEdgeInsets {
        return .init(top: all, left: all, bottom: all, right: all)
    }
    
    public static func with(horizontal: CGFloat = 0, vertical: CGFloat = 0) -> UIEdgeInsets {
        return .init(top: vertical, left: horizontal, bottom: vertical, right: horizontal)
    }
    
    public static func with(top: CGFloat = 0, left: CGFloat = 0, bottom: CGFloat = 0, right: CGFloat = 0) -> UIEdgeInsets {
        return .init(top: top, left: left, bottom: bottom, right: right)
    }
}
